package com.cy.mall.dao.mongodb;

import com.cy.mall.model.doc.SmsRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * SmsRecordDao
 *
 * @author tanyilin
 *
 * @create 2019年2月25日 下午3:06:06
 */
public interface SmsRecordDao extends MongoRepository<SmsRecord, String> {

    Page<SmsRecord> findByMobile(String mobile, Pageable pageable);

    Page<SmsRecord> findAll(Pageable pageable);

}
